for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var blocktrail = require('../../main');
var btccom = !!JSON.parse(process.env.BTCCOM);
var sdk = blocktrail.BlocktrailSDK({
apiKey : process.env.BLOCKTRAIL_SDK_APIKEY || "EXAMPLE_BLOCKTRAIL_SDK_NODEJS_APIKEY",
apiSecret : process.env.BLOCKTRAIL_SDK_APISECRET || "EXAMPLE_BLOCKTRAIL_SDK_NODEJS_APISECRET",
btccom: btccom
});
/*
For positive case
*/
sdk
.block("000000000000034a7dedef4a161fa058a2d67a173a90155f3a2fe6fc132e0ebf")
.then(function (block) {
console.log(block);
console.log
}, function (error) {
console.log(error);
For negative case
.block("dbaf14e1c476e76ea05a8b71921a46d6b06f0a950f1sdssd7c5f9f1a03b8fae467f10")